#include "bubble.hpp"
#include "../logger.hpp"

using namespace std;
using namespace winux;

// winux::Mixed getInfo();
winux::Mixed Bubble::getInfo()
{
    winux::Mixed info;
    info.createCollection();
    info["sender_id"] = senderId;
    info["text"] = text;
    info["time"] = time;
    return info;
}

Bubble::Bubble( std::string const& text , int senderId)
    : text(text),
      senderId(senderId),
      time(static_cast<uint>(std::time(nullptr)))
{
}